package com.cuitrip.business.webview.proxy;

import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;

import com.cuitrip.apiservice.BusinessHelper;
import com.cuitrip.business.webview.WebBrowserActivity;
import com.cuitrip.util.I118Util;
import com.lab.jumper.Jumper;

import java.util.Date;
import java.util.Locale;

/**
 * Created by sheena on 16/5/7.
 */
public class WalletHelpDocProxy {


    public static String formatUrl(String url) {
        String languageTag = I118Util.getH5LanguageTag();
        long time = new Date().getTime();
        if (languageTag.contains(Locale.CHINESE.toString())){
            if (languageTag.equalsIgnoreCase(Locale.SIMPLIFIED_CHINESE.toString())){
                return url + ".zh-cn.html?time="+time;
            }else{
                return url + ".zh-tw.html?time="+time;
            }
        }else{
            return url + ".html?time="+time;
        }
    }

}
